export let columns = [
  {
    title: '序号',
    dataIndex: 'index',
    ellipsis: true,
    fixed: 'left',
    width: 200,
    customRender: (text, record, index) => `${index + 1}`,
  },
  {
    title: '单位名称',
    dataIndex: 'unitName',
    ellipsis: true,
    width: 180,
    searchIndex: 'unitName',
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'unitName',
    },
  },

  {
    title: '备注',
    dataIndex: 'unitNotes',
    ellipsis: true,
    width: 180,
    searchIndex: 'unitNotes',
    scopedSlots: {},
  },
]
export let allColumn = [
  {
    title: '序号',
    dataIndex: 'sid',
    ellipsis: true,
    fixed: 'left',
    width: 200,
    scopedSlots: {
      customRender: 'customIndex',
    },
  },
  {
    title: '单位名称',
    dataIndex: 'unitName',
    ellipsis: true,
    width: 180,
    searchIndex: 'unitName',
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'unitName',
    },
  },

  {
    title: '备注',
    dataIndex: 'unitNotes',
    ellipsis: true,
    width: 180,
    searchIndex: 'unitNotes',
    scopedSlots: {},
  },
]
